<?php

namespace App\Providers;

use Illuminate\Support\Facades\Gate;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;

class AuthServiceProvider extends ServiceProvider
{
    /**
     * The policy mappings for the application.
     *
     * @var array
     */
    protected $policies = [
         \App\Models\Area::class => \App\Policies\AreaPolicy::class,
         \App\Models\Category::class => \App\Policies\CategoryPolicy::class,
         \App\Models\Type::class => \App\Policies\TypePolicy::class,
         \App\Models\Company::class => \App\Policies\CompanyPolicy::class,
         \App\Models\Filiale::class => \App\Policies\FilialePolicy::class,
         \App\Models\Product::class => \App\Policies\ProductPolicy::class,
         \App\Models\Prize::class => \App\Policies\PrizePolicy::class,
         \App\Models\PrizeRecord::class => \App\Policies\PrizeRecordPolicy::class,
		 \App\Models\RedeemLog::class => \App\Policies\RedeemLogPolicy::class,
        'App\Model' => 'App\Policies\ModelPolicy',
    ];

    /**
     * Register any authentication / authorization services.
     *
     * @return void
     */
    public function boot()
    {
        $this->registerPolicies();

        //
    }
}
